<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateSysConfigManageTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('sys_config_manage', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('title', 50)->default('')->comment('标题');
            $table->string('name', 50)->default('')->comment('配置标识');
            $table->string('type', 50)->default('vaule')->comment('配置类型');
            $table->text('value')->comment('配置值');
            $table->text('remark')->comment('配置说明');
            $table->integer('sort')->default(0)->comment('排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('sys_config_manage');
    }
}
